package com.ruoyi.customerSample.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 样品分类保存单据对象 sample_type_bill
 * 
 * @author ruoyi
 * @date 2023-05-15
 */
@ApiModel("样品分类保存单据对象")
public class SampleTypeBill extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 项目编号 */
    @ApiModelProperty(value = "项目编号")
    private String itemNum;

    /** 项目类别 */
    @ApiModelProperty(value = "项目类别")
    private String itemType;

    /** 样品类别 */
    @Excel(name = "样品类别")
    @ApiModelProperty(value = "样品类别")
    private String sampleType;

    /** 样品管理员 */
    @Excel(name = "样品管理员")
    @ApiModelProperty(value = "样品管理员")
    private String sampleAdmin;

    /** 登记日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登记日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "登记日期")
    private Date sampleTime;

    /** 更新登记日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新登记日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新登记日期")
    private Date upsampleTime;

    /** 明细信息 */
    @ApiModelProperty(value = "明细信息")
    private List<SampleTypeDetails> list;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setSampleType(String sampleType) 
    {
        this.sampleType = sampleType;
    }

    public String getSampleType() 
    {
        return sampleType;
    }
    public void setSampleAdmin(String sampleAdmin) 
    {
        this.sampleAdmin = sampleAdmin;
    }

    public String getSampleAdmin() 
    {
        return sampleAdmin;
    }
    public void setSampleTime(Date sampleTime) 
    {
        this.sampleTime = sampleTime;
    }

    public Date getSampleTime() 
    {
        return sampleTime;
    }
    public void setUpsampleTime(Date upsampleTime) 
    {
        this.upsampleTime = upsampleTime;
    }

    public Date getUpsampleTime() 
    {
        return upsampleTime;
    }

    public List<SampleTypeDetails> getList() {
        return list;
    }

    public void setList(List<SampleTypeDetails> list) {
        this.list = list;
    }

    public String getItemType() {
        return itemType;
    }

    public void setItemType(String itemType) {
        this.itemType = itemType;
    }

    public String getItemNum() {
        return itemNum;
    }

    public void setItemNum(String itemNum) {
        this.itemNum = itemNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sampleType", getSampleType())
            .append("sampleAdmin", getSampleAdmin())
            .append("sampleTime", getSampleTime())
            .append("upsampleTime", getUpsampleTime())
            .toString();
    }
}
